<?php


/*
	ALTERAR LAYOUT tela_chamados para tela_sistema_atual!!!


*/
$options = array(
   'Value 1' => 'Label 1',
   'Value 2' => 'Label 2',
   'Value 3' => 'Label 3'
);

echo $this->Html->div('container-fluid',
		$this->Html->div('row-fluid',
			$this->Html->div('span7  bs-tela',
				$this->Form->create('Chamado', array('class' => 'form-horizontal'))
				.
				$this->Html->div('row-fluid ',
					$this->Html->div('span7',
						$this->Form->label('solicitante', 'Aberto por: ', array('class' => 'control-label Width100Form'))
						. 
						$this->Html->div('controls noMarginForm',
							$this->Form->input('solicitante', array('label' => false, 'div' => false))
						)
					)
					.
					$this->Html->div('span5',
						$this->Form->label('complementa_chamado', 
						'Complementa chamado ' 
						.							
						$this->Form->input('complementa_chamado', array('label' => false, 'div' => false, 'class'=>'span4'))
						)
					)
				)
				.
				$this->Html->div('row-fluid hackEspacoTela',
					$this->Html->div('span7',
						$this->Form->label('email', 'E-mail', array('class' => 'control-label Width100Form'))
						. 
						$this->Html->div('controls noMarginForm ',
							$this->Form->input('email', array('label' => false, 'div' => false))
						)
					)
					.
					$this->Html->div('span5',
						$this->Form->label('registro_interno', 
						'Registro interno? ' 
						.							
							$this->Form->input('registro_interno', 
								array('label' => false, 'div' => false, 'type' => 'checkbox')
							)
						)
					)
				)
				.
				$this->Html->div('row-fluid hackEspacoTela',
					$this->Html->div('span12',
						$this->Form->label('data_abertura', 'Data abertura', 
							array('class' => 'control-label Width100Form')
						)
						. 
						$this->Html->div('controls noMarginForm',
							$this->Form->input('data_abertura', 
								array('label' => false, 'div' => false,'class' => 'input-small', 'type' => 'text')
							)
						)
					)
				)
				.
				$this->Html->div('row-fluid hackEspacoTela',
					$this->Html->div('span7',
						$this->Form->label('area', 'Área', array('class' => 'control-label Width100Form'))
						. 
						$this->Html->div('controls noMarginForm',
							$this->Form->select('area', $options, array('label' => false, 'div' => false))
						)
					)
					.
					$this->Html->div('span5',
						$this->Form->label('grupo', 'Grupo', array('class' => 'control-label Width100Form'))
						. 
						$this->Html->div('controls noMarginForm',
							$this->Form->select('grupo', $options, 
								array('label' => false, 'div' => false, 'class' => 'span5')
							)
						)
					)
				)
				.

				$this->Html->div('row-fluid hackEspacoTela',
					$this->Html->div('span7',
						$this->Form->label('unidade', 'Unidade', array('class' => 'control-label Width100Form'))
						. 
						$this->Html->div('controls noMarginForm',
							$this->Form->select('unidade', $options, array('label' => false, 'div' => false))
						)
					)
					.
					$this->Html->div('span5',
						$this->Form->label('sub-grupo', 'Sub-Grupo', array('class' => 'control-label Width100Form'))
						. 
						$this->Html->div('controls noMarginForm',
							$this->Form->select('sub-grupo', $options, 
								array('label' => false, 'div' => false, 'class' => 'span5')
							)
						)
					)
				)
				.
				$this->Html->div('row-fluid hackEspacoTela',
					$this->Html->div('span7',
						$this->Form->label('escopo', 'Escopo', array('class' => 'control-label Width100Form'))
						. 
						$this->Html->div('controls noMarginForm',
							$this->Form->select('escopo', $options, array('label' => false, 'div' => false))
						)
					)
					.
					$this->Html->div('span5',
						$this->Form->label('prioridade', 'Prioridade', array('class' => 'control-label Width100Form'))
						. 
						$this->Html->div('controls noMarginForm',
							$this->Form->select('prioridade', $options, 
								array('label' => false, 'div' => false, 'class' => 'span5 ')
							)
						)
					)
				)
				.
				$this->Html->div('row-fluid hackEspacoTela',
					$this->Html->div('span12',
						$this->Form->label('descricao', 'Descrição', array('class' => 'control-label Width100Form '))
						. 
						$this->Html->div('controls noMarginForm',
							$this->Form->input('descricao', 
								array('label' => false, 'div' => false, 'rows' => '5', 'class' => 'span9 ')
							)
						)
					)
				)
				.
				$this->Html->div('row-fluid',
					$this->Html->div('span7',
						$this->Form->label('responsavel', 'Responsável', array('class' => 'control-label Width100Form'))
						. 
						$this->Html->div('controls noMarginForm',
							$this->Form->input('responsavel', array('label' => false, 'div' => false))
						)
					)
					.
					$this->Html->div('span5',
						$this->Form->label('data_vencimento', 
						'Data vencimento ' 
						.							
							$this->Form->input('data_vencimento', 
								array('label' => false, 'div' => false, 'class'=>'input-small', 'type' => 'text')
							)
						)
					)
				)

				.

				$this->Html->div('row-fluid hackEspacoTela',
					$this->Html->div('span4 Width210Form noMarginForm',
						$this->Form->label('atendido_em', 'Atendido em', 
							array('class' => 'control-label Width100Form')
						)
						. 
						$this->Html->div('controls noMarginForm',
							$this->Form->input('atendido_em', 
								array('label' => false, 'div' => false, 'class' => 'input-small', 'type' => 'text'))
						)
					)
					.
					$this->Html->div('span4 Width170Form noMarginForm',
						$this->Form->label('horas_previstas', 'Horas Previstas', array('class' => 'control-label Width100Form'))
						. 
						$this->Html->div('controls noMarginForm noMarginForm',
							$this->Form->input('horas_previstas', 
								array('label' => false, 'div' => false, 'class' => 'span4')
							)
						)
					)
					.
					$this->Html->div('span4 Width170Form noMarginForm',
						$this->Form->label('horas_realizadas', 'Horas Realizadas', array('class' => 'control-label Width110Form'))
						. 
						$this->Html->div('controls Width170Form noMarginForm',
							$this->Form->input('horas_realizadas', 
								array('label' => false, 'div' => false, 'class' => 'span4')
							)
						)
					)

				)
				.
				$this->Html->div('row-fluid hackEspacoTela',
					$this->Html->div('span12',
						$this->Form->label('notificacao_email_encerramento', 'Notificação', 
							array('class' => 'control-label Width100Form')
						)
						. 
						$this->Html->div('controls noMarginForm',
							$this->Form->input('notificacao_email_encerramento', 
								array('label' => false, 'div' => false,'class' => 'input-small')
							)
							.
							$this->Html->tag('span',
								'Envio do email de encerramento',
								array('class' => 'help-inline')

							)
						)
					)
				)
				.
				$this->Html->div('row-fluid hackEspacoTela',
					$this->Html->div('span12',
						$this->Form->label('historico_chamado', 'Histórico chamado', array('class' => 'control-label Width100Form '))
						. 
						$this->Html->div('controls noMarginForm',
							$this->Form->input('historico_chamado', 
								array('label' => false, 'div' => false, 'rows' => '5', 'class' => 'span9 ')
							)
						)
					)
				)
				.
				$this->Html->div('row-fluid hackEspacoTela',
					$this->Html->div('span12',
						$this->Form->label('observacoes_internas', 
							'Obs. Internas', array('class' => 'control-label Width100Form ')
						)
						. 
						$this->Html->div('controls noMarginForm',
							$this->Form->input('observacoes_internas', 
								array('label' => false, 'div' => false, 'rows' => '5', 'class' => 'span9 ')
							)
						)
					)
				)
				.
				$this->Form->end(array('class' => 'btn', 'label' => 'Salvar'))
			)
			.
			$this->Html->div('span5 bs-tela',
				$this->Html->tableHeaders(array('Date', 'Title', 'Active'))
			)
		)

	);



?>
